package ${package.domain}.repository;

import ${package.domain}.entity.${entity};

/**
 * ${table.comment!}资源库
 *
 * @author ${author}
 * @since ${date}
 */
public interface I${entity}Repo {

    /**
     * 创建 ${table.comment!}
     *
     * @param ${entity?uncap_first} ${table.comment!}实体
     */
    void create(${entity} ${entity?uncap_first});

    /**
     * 根据主键删除 ${table.comment!}
     *
     * @param ${entity?uncap_first}Id ${table.comment!}主键
     */
    void deleteById(${idPropertyType} ${entity?uncap_first}Id);

    /**
     * 更新 ${table.comment!}
     *
     * @param ${entity?uncap_first} ${table.comment!}实体
     */
    void updateById(${entity} ${entity?uncap_first});

    /**
     * 根据主键 查询 ${table.comment!}
     *
     * @param ${entity?uncap_first}Id ${table.comment!}主键
     * @return ${table.comment!}实体
     */
    ${entity} queryById(${idPropertyType} ${entity?uncap_first}Id);
}
